import http from "../http"
//获取套餐详情的全部数据
const getMedicalPlan = (obj) => http({
    url: '/getMedicalPlan',
    method: 'get',
    params: {...obj }
})

//增加套餐详情的数据
const addMedicalPlan = (obj) => http({
    url: "/addMedicalPlan",
    method: 'post',
    data: {...obj },
})

//删除套餐详情的数据
const delMedicalPlan = (id) => http({
    url: "/delMedicalPlan",
    method: 'post',
    data: { id }
})

//获取套餐详情名称
const getMedicalName = () => http({
    url: '/getMedicalName',
    method: 'get'
})

//套餐详情选择框删除
const delAllMedicalPlan = (obj) => http({
    url: "/delAllMedicalPlan",
    method: 'post',
    data: {...obj }
})

//获取套餐类型全部数据
const getPackageType = () => http({
    url: '/getPackageType',
    method: 'get'
})

//增加套餐类型的数据
const addPackageType = (obj) => http({
    url: "/addPackageType",
    method: 'post',
    data: {...obj }
})

//删除套餐类型的数据
const delPackageType = (id) => http({
    url: "/delPackageType",
    method: 'post',
    data: { id }
})

//获取套餐类型的名称
const getTypeName = () => http({
    url: '/getTypeName',
    method: 'get'
})

//获取项目的全部信息
const getPhysicalExaminationProject = (obj) => http({
    url: '/getPhysicalExaminationProject',
    method: 'get',
    params: {...obj }
})

//获取项目的名称
const getProjectName = () => http({
    url: '/getProjectName',
    method: 'get'
})

//增加项目的数据
const addPhysicalExaminationProject = (obj) => http({
    url: "/addPhysicalExaminationProject",
    method: "post",
    data: {...obj }
})

//删除项目数据
const delPhysicalExaminationProject = (id) => http({
    url: "/delPhysicalExaminationProject",
    method: 'post',
    data: { id }
})

//项目选择框删除
const delAllPhysicalExaminationProject = (obj) => http({
    url: "/delAllPhysicalExaminationProject",
    method: 'post',
    data: {...obj }
})

//获取预约体检的数据
const getAppointmentMedical = (obj) => http({
    url: '/getAppointmentMedical',
    method: 'get',
    params: {...obj }
})
export { getMedicalPlan, addMedicalPlan, delMedicalPlan, getMedicalName, delAllMedicalPlan, getPackageType, getPhysicalExaminationProject, addPackageType, delPackageType, getTypeName, getProjectName, addPhysicalExaminationProject, delPhysicalExaminationProject, delAllPhysicalExaminationProject, getAppointmentMedical }